<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head th:include="common/common :: jscss">
    <title>渠道城市价格系数</title>
</head>
<body>

<div class="layui-fluid">

    <blockquote class="layui-crumb">
        <a lay-href="/channel/list.action">渠道管理</a>&nbsp;/&nbsp;
        <zmn th:text="${obj == null ? '':obj.name}"/>&nbsp;/&nbsp;
        <a th:text="${T(com.zmn.plat.common.dictionary.ProductDict).getBizTypeCNENName(bizType)}" th:href="|/channel/priceList.action?channelId=${channelId}&addFlag=${addFlag}&bizType=${bizType}&priceType=${priceType}|">渠道价格</a> /
        <zmn th:text="${priceType == 1 ? '销售价':'内部价'}"></zmn>&nbsp;/&nbsp;
        <zmn th:text="渠道城市系数">渠道城市系数</zmn>
    </blockquote>

    <div class="layui-card">

        <div th:replace="channel/_tab::tab"></div>

        <div class="layui-split">&nbsp;</div>

        <form method="post" th:action="|/channel/citypriceratio/list.action?channelId=${channelId}&bizType=${bizType}&priceType=${priceType}|">
            <input type="hidden" name="addFlag" th:value="${addFlag}"/>
            <div class="layui-form" th:include="channel/citypriceratio/_query :: query "></div>
        </form>

        <div class="layui-card-body">
            <div th:replace="channel/citypriceratio/_table::table"/>

            <!--表格工具条
                id属性统一定义为zmn-table-tool
                功能相似的按钮置于同一组内(layui-btn-group)，
                重要的功能按钮使用默认按钮(如以下“启用”和“停用”按钮)，
                次要的功能按钮使用原始按钮(如以下“新增报表数据源”按钮，加入样式layui-btn-primary)
                -->
            <script type="text/html" id="zmn-table-tool">
                <div class="layui-btn-container">
                    <div class="layui-btn-group">
                        <button th:if="${#authPermit.checkPermit('/channel/citypriceratio/citySelectBatch.action')}" th:lay-href="|/channel/citypriceratio/citySelectBatch.action?channelId=${obj.channelId}&bizType=${vo.bizType}&priceType=${vo.priceType}|" class="layui-btn layui-btn-sm"
                                lay-text="快速设置" text="快速设置">快速设置
                        </button>
                    </div>
                </div>
            </script>
        </div>

    </div>
</div>
</div>

<script type="text/javascript" th:inline="javascript">

    var json = {
        hasView: [[${#authPermit.checkPermit('/channel/citypriceratio/list.action')}]],
        hasAddEditView: [[${#authPermit.checkPermit('/channel/citypriceratio/addEditView.action')}]],
        totalCount: [[${vo.totalCount}]],
        pageSize: [[${vo.pageSize}]],
        pageIndex: [[${vo.pageIndex}]],
        vo:[[${vo}]],
        items: [[${items}]],
        provinces: [[${provinces}]],
        citys:[[${citys}]]
    };

    layui.config({
        base: "/static/lay/",
        version: 20200312111
    }).extend({
        index: "lib/index",
        channel_citypriceratio_list: "channel/citypriceratio/zmn.plat.citypriceratio.list",
    }).use(['index', 'channel_citypriceratio_list']);

</script>
</body>
</html>

<script type="text/html" id="toolbar_help">
    <div class="layui-inline" title="帮助" lay-event="CUSTOM_HELP"><i class="layui-icon layui-icon-help"></i></div>
</script>
<script type="text/html" id="help_content">
    <div>
        <label style="font-weight: bold">说明</label> <br/>
        <p>系数展示为：待生效系数/已生效系数</p>
    </div>
</script>

